<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{pcPurchaseOrderBean.page}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseOrderBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Pc Purchase Order entities"/>

	<ui:define name="header">
		Pc Purchase Order
	</ui:define>

	<ui:define name="subheader">
		Search Pc Purchase Order entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="pcPurchaseOrderBeanExamplePoNo" value="Po No:"/>
						<h:panelGroup>
							<h:inputText id="pcPurchaseOrderBeanExamplePoNo" value="#{pcPurchaseOrderBean.example.poNo}"/>
							<h:message for="pcPurchaseOrderBeanExamplePoNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseOrderBeanExampleSysTitleName" value="Sys Title Name:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="pcPurchaseOrderBeanExampleSysTitleName" value="#{pcPurchaseOrderBean.example.sysTitleName}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseOrderBeanExampleSysTitleName" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseOrderBeanExampleMmSupplierType" value="Mm Supplier Type:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{mmSupplierTypeBean.converter}" id="pcPurchaseOrderBeanExampleMmSupplierType" value="#{pcPurchaseOrderBean.example.mmSupplierType}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierTypeBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseOrderBeanExampleMmSupplierType" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseOrderBeanExamplePcPurchaseOrderStatus" value="Pc Purchase Order Status:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{pcPurchaseOrderStatusBean.converter}" id="pcPurchaseOrderBeanExamplePcPurchaseOrderStatus" value="#{pcPurchaseOrderBean.example.pcPurchaseOrderStatus}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseOrderStatusBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseOrderBeanExamplePcPurchaseOrderStatus" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseOrderBeanExampleHrEmp" value="Hr Emp:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{hrEmpBean.converter}" id="pcPurchaseOrderBeanExampleHrEmp" value="#{pcPurchaseOrderBean.example.hrEmp}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseOrderBeanExampleHrEmp" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{pcPurchaseOrderBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{pcPurchaseOrderBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="pcPurchaseOrderBeanPageItems" styleClass="data-table" value="#{pcPurchaseOrderBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoNo" value="#{_item.poNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoCode" value="#{_item.poCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDescr" value="#{_item.poDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDate" value="#{_item.poDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDiscountPerc" value="#{_item.poDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{pcPurchaseOrderBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
